<!-- File: /app/View/Posts/view.ctp -->

<div class="post">
	<h2 class="post-title"><?php echo h($post['Post']['title']); ?></h2>

	<p class="post-info">
		<small>
			Create by: <?php echo '<i>'.'Abc.vnu'.'</i>' ?><br />
			Status: <?php if ($post['Post']['is_published']) {
				echo '<i>Publish</i>';
			} else { echo '<i>Private</i>'; }?> <br />
			Create at: <?php echo '<i>'.$post['Post']['created'].'</i>'; ?><br />
			Modify at: <?php echo '<i>'.$post['Post']['modified'].'</i>'; ?>
		</small>
	</p>

	<?php echo '<p class="code-text post-content">'.h($post['Post']['body']); ?>


	<?php
	echo '<div class="action">';
	echo $this->Form->postLink('Delete', array('action' => 'delete', $post['Post']['id']), array('class'=>'button medium'), array('confirm' => 'Are you sure?'));
	echo $this->Html->link('Edit', array('action' => 'edit', $post['Post']['id']), array('class'=>'button medium'));
	echo $this->Html->link('Back', array('action' => 'index'), array('class'=>'button medium'));
	echo '</div>';
	?>

</div>